#include "bmpordercolors.h"
#include "bmpeditor.h"

const char * BMPOrderColors::NAME = "OrderColors";
const char * BMPOrderColors::getName(){return NAME;}

void BMPOrderColors::execute()
{

	BMPEditor* bmpe = (BMPEditor*)getContext();
	BitMaP * bmp = bmpe->getBMP();
	if(bmp)
	{
		bmp->orderIndex();
		bmpe->getPallette()->countColors();
	}
}